package com.clp.protocol.iec104.apdu.asdu.info_obj.qua;

import io.netty.buffer.ByteBuf;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;

/**
 * 遥脉限定词 - 品质描述词
 */
@AllArgsConstructor(access = AccessLevel.PROTECTED)
public abstract class TpQua extends Qua {
    @Override
    public TpQua initBy(ByteBuf buf) {
        // TODO 暂时这样
        buf.readByte();
        return this;
    }

    @Override
    public boolean isValid() {
        return false;
    }

    @Override
    public void writeTo(ByteBuf buf) {
        // TODO 暂时这样
        buf.writeByte(0x00);
    }
}
